<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}" disabled>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">身份:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">

                <label for="row[status]-0"><input id="row[status]-0" name="row[status]" type="radio" value="0" {if condition="$is_teacher" eq 0 }checked{/if}/> 普通会员</label>

                <label for="row[status]-1"><input id="row[status]-1" name="row[status]" type="radio" value="1" {if condition="$is_teacher" eq 1 }checked{/if} /> 售课老师</label>
            </div>

        </div>
    </div>


        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">现有分成比例:</label>
            <div class="col-xs-12 col-sm-8">
                <label class="radio">{$bl}%</label>
            </div>
        </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">分成比例:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-score" data-rule="required" class="form-control" name="row[bl]" type="number" value="0">
            <p style="color: grey;">* 提示：老设置老师的推销课程的百分比%。</p>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
